package com.white.bean;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * -- 文章类别：文章分类ID、管理员ID、分类名、描述、文章总数、粉丝总数。
 * create table classify(
 * classifyId int primary key AUTO_INCREMENT comment "文章分类ID",
 * userId int comment "管理员ID",
 * foreign key(userId) REFERENCES user(userId) on delete cascade on update cascade,
 * name varchar(64) comment "分类名",
 * description varchar(1256) comment "分类描述",
 * articles int not null default 0 comment "文章总数",
 * fans int not null default 0 comment "粉丝总数",
 * createTime TIMESTAMP not null default CURRENT_TIMESTAMP comment "创建时间，默认当前时间戳",
 * image varchar(256) comment "图片地址"
 * );
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Classify  implements Serializable {
    @TableId("classifyId")
    private Long classifyId;
    private Long userId;
    private int articles, fans;
    private String name, description, createTime, image;

    public Long getClassifyId() {
        return classifyId;
    }

    public void setClassifyId(Long classifyId) {
        this.classifyId = classifyId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public int getArticles() {
        return articles;
    }

    public void setArticles(int articles) {
        this.articles = articles;
    }

    public int getFans() {
        return fans;
    }

    public void setFans(int fans) {
        this.fans = fans;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }
}
